package nuc.jyg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @Author Nuc YongGuang Ji
 * Created by JiYongGuang on 2017/5/17.
 */
@Controller
public class InterceptorController {

    @RequestMapping(value = "/interceptor")
    public void testInterceptor(HttpServletResponse servletResponse) throws IOException {
        PrintWriter pw = servletResponse.getWriter();
        pw.print("hello interceptor");
        pw.print("hello interceptor");
        System.out.println("InterceptorController class");
    }
}
